package com.usian.feign;

import com.usian.model.record.Recordd;
import com.usian.vo.RecordVo;
import com.usian.vo.UserVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.xml.transform.Result;

@FeignClient(value = "user")//远程调用的微服务名称
public interface UserFeignService {

    @RequestMapping("user/findScoreId")//远程调用的方法
    public Integer findScoreId(Integer id);//参数

    @RequestMapping("user/updateScoreById")
    public UserVo updateScore(UserVo userVo);

    //远程调用用户里面的积分记录的添加方法
    @RequestMapping("user/addRecord")
    public RecordVo addRecord(@RequestBody Recordd record);
}
